<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class AllWorkDay extends CI_Controller {
 function __construct()
 {
   parent::__construct();
   $this->load->model('muser');   
   $this->load->helper('date');
   $this->load->library('my_time');
   $this->load->library('my_datatables');
 }
 
 function index(){
 	$this->load->view('_header');
	$this->load->view('workDay/workDay');
	$this->load->view('_footer');
	
 }
 function table(){
	$this->my_datatables
 		->select('WorkDay_ID,WorkDay.Staff_ID,FullName,Date,StartTime,EndTime,WorkTime,OT,ON,WeekDay')
		->from('WorkDay')		
		->join('Staff','Staff.Staff_ID=WorkDay.Staff_ID');		
		//->add_column('Edit','<a href="'.base_url().'time/edit/$1">Edit</a>','WorkDay_ID');
	echo $this->my_datatables->generate();
 }
 
}